package cn.zhou;

import java.util.Scanner;

public class test4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个大于100的三位数:");
        int a = sc.nextInt();
        int b=0;
        int c=0;
        for (int i = 100; i <=a; i++) {
            if (i%10!=7&&i/10%10!=5&&i/100%10!=3) {
                c=c+i;
                b++;
            }
        }
        System.out.println("以上满足条件的数字之和: " +c);
        System.out.println("以上满足条件的数字个数: " +b);
    }
}
